package com.jwds.digital.bios.business.rpc.feign;

import com.jwds.digital.bios.business.core.infrastructure.dto.feign.BasicReceiveLogReqDTO;
import com.jwds.digital.bios.business.rpc.feign.fallback.BasicReceiveLogFeignFallBack;
import com.jwds.tdc.framework.application.lib.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 数据接收记录Feign
 *
 * @Author hesong
 */
@FeignClient(name = "bios-flow", path = "/basic/receive/log",fallback = BasicReceiveLogFeignFallBack.class)
public interface BasicReceiveLogFeign {

    /**
     * 新增
     *
     * @param reqDto 实体
     * @return BaseResponse
     */
    @PostMapping("/")
    BaseResponse<?> add(@RequestBody BasicReceiveLogReqDTO reqDto);
}
